package functions;

import java.util.Random;

public class RandomGaussian {
	private Double res=0.0;
	private Random fRandom = new Random();
	
	 public RandomGaussian(Double mean, Double var){
		 while(res<2)
			 res = mean + fRandom.nextGaussian() * var;	 
	 }
	 
	 public RandomGaussian(Double mean, Double var, Integer type){
			 res = mean + fRandom.nextGaussian() * var;	 
	 }
	 
	 public Double getRes(){
		return res;
	 }
	 
}
